package com.cws.project.cws.score.mapper;

import java.util.List;

import com.cws.project.cws.score.domain.HomeworkScore;

/**
 * 作业评分Mapper接口
 *
 * @author xyl
 * @date 2022-01-12
 */
public interface HomeworkScoreMapper {
    /**
     * 查询作业评分
     *
     * @param scoreId 作业评分ID
     * @return 作业评分
     */
    public HomeworkScore selectHomeworkScoreById(Long scoreId);

    /**
     * 查询作业评分列表
     *
     * @param homeworkScore 作业评分
     * @return 作业评分集合
     */
    public List<HomeworkScore> selectHomeworkScoreList(HomeworkScore homeworkScore);

    /**
     * 新增作业评分
     *
     * @param homeworkScore 作业评分
     * @return 结果
     */
    public int insertHomeworkScore(HomeworkScore homeworkScore);

    /**
     * 修改作业评分
     *
     * @param homeworkScore 作业评分
     * @return 结果
     */
    public int updateHomeworkScore(HomeworkScore homeworkScore);

    /**
     * 删除作业评分
     *
     * @param scoreId 作业评分ID
     * @return 结果
     */
    public int deleteHomeworkScoreById(Long scoreId);

    /**
     * 批量删除作业评分
     *
     * @param scoreIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteHomeworkScoreByIds(String[] scoreIds);

    HomeworkScore selectHomeworkIsExist(Long userId, Long homeworkId);

}
